#ifndef __BSP_I2C__
#define __BSP_I2C__

#include <stdio.h>
#include <string.h>
#include "app_io.h"
#include "app_i2c.h"
#include "app_i2c_dma.h"
#include "board_SK.h"

#include "public_macro.h"


/*******I2C IO CONFIG***************************/
#define APP_I2C_MASTER_ID               APP_I2C_ID_1
#define APP_I2C_MASTER_SCL_PIN          APP_IO_PIN_30
#define APP_I2C_MASTER_SDA_PIN          APP_IO_PIN_26
#define APP_I2C_MASTER_SCL_IO_TYPE      APP_IO_TYPE_NORMAL
#define APP_I2C_MASTER_SDA_IO_TYPE      APP_IO_TYPE_NORMAL
#define APP_I2C_MASTER_SCL_PINMUX       APP_IO_MUX_0
#define APP_I2C_MASTER_SDA_PINMUX       APP_IO_MUX_0

void app_i2c_master_interrupt(void);

int user_i2c_init(void);
int user_i2c_deinit(void);
int user_i2c_trans_recv(uint8_t devAddr, uint8_t *pW, int wLen, uint8_t *pRecv, int maxReav);






#endif


